﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RSSReader.classesCustom;

namespace RSSReader.pageswithContent.tests
{
    public partial class TestObjectDataSourceMasterDetailForm : System.Web.UI.Page
    {
        private DataHandler dh;
        protected void Page_Load(object sender, EventArgs e)
        {
            dh = (DataHandler)Application["dataHandler"];
        }

        protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
        {             
            e.ObjectInstance = dh;
        }

        protected void ObjectDataSource2_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
        {
            e.ObjectInstance = dh;
        }
    }
}